package me.zhengjie.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import me.zhengjie.tool.NPETool;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * 业务类型（事项编码）
 */
@ApiModel("BusinessType")
public class BusinessType implements Serializable {

    private static final long serialVersionUID = -5515598115178099588L;

    @ApiModelProperty("业务类型(大类)")
    private String type;   // 业务类型(大类)
    @ApiModelProperty("业务类型（子类）")
    private String aaa121; // 业务类型（子类）
    @ApiModelProperty("险种类型")
    private String aae140; // 险种类型
    @ApiModelProperty("事件编码")
    private String caz025; // 事件编码

    public BusinessType(String type, String aaa121, String aae140, String caz025) {
//        NPETool.isEmptyThrowException(type, "业务类型（大类）");
        NPETool.isEmptyThrowException(aaa121, "业务类型（子类）");
        this.type = type;
        this.aaa121 = aaa121;
        this.aae140 = aae140;
        this.caz025 = caz025;
    }

    public Map convert2Map() {
        Map map = new HashMap<>();
        map.put("type", this.type);
        map.put("aaa121", this.aaa121);
        map.put("aae140", this.aae140);
        map.put("caz025", this.caz025);
        return map;
    }

    public String getType() {
        return type;
    }

    public String getAaa121() {
        return aaa121;
    }

    public String getAae140() {
        return aae140;
    }

    public String getCaz025() {
        return caz025;
    }
}
